package org.wtfbbq.net.wifi;

import java.io.*;
import java.util.*;

import org.wtfbbq.info.OSInformation;

public class Radar {
	
	private RadarHandler _handler = null;
	
	public Radar ( ){
		String os = OSInformation.getName();
		
		if ( os.equals ( "Windows 7" ) ) {
			_handler = new NetshHandler();		
		} else {
			throw new UnsupportedOperationException ( "This operating system is not supported" );
		}
		
	}
	
	public ArrayList<WirelessNetwork> scan ( ) {
		return _handler.wirelessNetworks();
	}
	
	public ArrayList<AccessPoint> scanAccessPoints ( ) {
		return _handler.wirelessAccessPoints();
	}
	
}